package material.encapsulation_algorithm;

/**
 * 煮咖啡
 */
public class Coffee {
    void prepareRecipe() {
        boilWater();
        brewCoffeeGrinds();
        pourInCup();
        addSugarAndMilk();
    }

    public void boilWater() {
        System.out.println("水沸腾了");
    }

    public void brewCoffeeGrinds() {
        System.out.println("把咖啡加入沸水中");
    }

    public void pourInCup() {
        System.out.println("把冲泡好的咖啡倒入杯子中");
    }

    public void addSugarAndMilk() {
        System.out.println("加牛奶和糖");
    }
}
